package top.cardone.context.func;

import top.cardone.context.util.StringUtils;
import top.cardone.core.util.func.Func1;

/**
 * Created by cardone-home-001 on 2016/4/20.
 */
@Deprecated
public class EscapeSqlFunc implements Func1<Object, Object> {
	@Override
	public Object func(Object obj) {
		if (obj == null) {
			return obj;
		}

		if (!(obj instanceof String)) {
			return obj;
		}

		return StringUtils.escapeSql((String) obj);
	}
}